import Vue from 'vue'
import App from './App.vue'
import Vant from 'vant';
import 'vant/lib/index.css';
import router from '@/router/index.js'
Vue.config.productionTip = false
Vue.use(Vant);
// 组件的全局注册
import ArticleItem from '@/components/ArticleItem'
Vue.component('ArticleItem', ArticleItem)

// new Vue({
//   router:router,
//   render: h => h(App)
// }).$mount('#app')
new Vue({
  //挂载点
  el: '#app',
  //2.使用刚刚的路由配置
  router: router,
  //启动组件
  render: function (callback) {
      return callback(App);
  }
});